/*
 * 轮播图
 */
class Carousel{
  final int id;
  final String pic;
  final String title;

  Carousel(this.id, this.pic, this.title);

  Carousel.fromJson(Map<String, dynamic> json)
  : id = json['id'],
        title = json['title'],
        pic = json['pic'];

  Map<String, dynamic> toJson() =>
      <String, dynamic>{
        'id': id,
        'title': title,
        'pic': pic,
      };

  @override
  String toString() {
    return 'Carousel{id: $id, pic: $pic, title: $title}';
  }
}